import axios from "axios";

const myRequest = axios.create({
    baseURL: '/city',      //基准路径
    timeout: 6000,    //请求时间
})

// 请求拦截器
myRequest.interceptors.request.use(config => {
    return config
}, (error) => {
    console.log(error);
})

// 响应拦截器
myRequest.interceptors.response.use(response => {
    return response
}, (error) => {
    console.log(error);
})

export default myRequest;